package sort;

public class SortCommon {
    public static void swap(Comparable[] arr, int i1, int i2) {
        Comparable tmp = arr[i1];
        arr[i1] = arr[i2];
        arr[i2] = tmp;
    }

    public static boolean less(Comparable a, Comparable b) {
        return a.compareTo(b) < 0;
    }
}
